<?php
$con = mysql_connect("sql212.xtreemhost.com","xth_8628058","thinkcom");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("xth_8628058_ikbhal", $con);

$result = mysql_query("SELECT * FROM CodeSample");

while($row = mysql_fetch_array($result))  {
  $code = htmlspecialchars($row['code sample']);
  echo $row['title']  ."<BR><code>" .$code."</code>";
  echo "<hr />";
  }

mysql_close($con);
?> 